﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using System.Reflection;
using System.Diagnostics;
using System.Xml.Linq;
using System.Xml.XPath;

namespace TestWorkbench
{
    class Program
    {
        static void Main(string[] args)
        {
            XElement root = XElement.Parse("<ul><li>aaaaaa</li><li>bbbbbbbbbb</li><li>cccccc</li></ul>");
            root.XPathSelectElements("//li").Remove();
            root.Add(XElement.Parse("<sps><li>aaaaaa</li><li>bbbbbbbbbb</li></sps>").Elements());
        }
        static string ConactCharList(List<char> list)
        {
            StringBuilder sb = new StringBuilder();
            foreach (var c in list)
            {
                sb.Append(c);
            }
            return sb.ToString();
        }
    }
}
